/**
 * 用户模型（相当于实体类）
 */
var db = require('./../../utils/mongodb/db');
var Schema = db.Schema;

var userSchema  = new Schema({
    username: String ,
    password: String ,
    fullName: String ,
    department: {
        _id : String,
        departmentName : String
    } ,
    age: Number ,
    sex: String ,
    address: String ,
    phone: String ,
    email: String ,
    //0取消，1正常，2停用，3离职
    status: Number
});

var User = db.model('users',userSchema);

module.exports = User;